package com.suhuamo.stream;

// 匿名内部类的基础知识
public class E1 {

    int b = 1;
    public static void main(String[] args) {
        E1 e1 = new E1();
        e1.e1Method1();
    }

    void e1Method1() {
        Interface1 interface1 = new Interface1() {
            int b = 4;
            @Override
            public void method1() {
                b = 6;
                System.out.println("method1");
            }
        };
        interface1.method1();
    }
}
